/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
class Test{
    public int a;//成员变量（字段）（类属性）
    public String name;//成员方法
    public double c;
    public boolean flag;
    public void test(){
        System.out.println("成员方法");
    }


}
//创建一个洗衣机类
class WashMachine{
    public String name = "meme";
    public double size = 20;
    public String color = "bad";


    public void setTime(){
        System.out.println("定时功能");
    }
    public void powerOff(){
        System.out.println("打开洗衣机");
    }
    public void powerOn(){
        System.out.println("关闭洗衣机");
    }
    public void show(){
        System.out.println("品牌" + name + "颜色" + color + "尺寸" + size);
    }
}
public class Main {
    public static void main(String[] args) {
        WashMachine washMachine = new WashMachine();
//        washMachine.color = "黄";
//        washMachine.size = 24;
//        washMachine.name = "美的";
        washMachine.show();
//        washMachine.setTime();
    }
}
